/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2023-present Kaleidos INC
*/

:host {
  &::ng-deep {
    & .tox .tox-statusbar {
      display: none;
    }

    & .tox {
      border: 2px solid var(--color-gray40);
      border-radius: 3px;
    }
  }

  &.editor-focused {
    & .editor::ng-deep .tox {
      border-color: var(--color-secondary);
    }
  }

  /* Prevent flicker on open */
  block-size: 95px;
  display: block;
  overflow: hidden;
  visibility: hidden;

  &.ready {
    block-size: auto;
    overflow: visible;
    visibility: visible;
  }

  &.no-shadow {
    &::ng-deep {
      & .tox:not(.tox-tinymce-inline) .tox-editor-header {
        box-shadow: none;
      }
    }
  }
}
